package com.lry.read;

import com.lry.Node;
import com.lry.NodeValue;

import java.util.List;
import java.util.concurrent.CompletableFuture;

public class ReadAll extends AbstractReadConsistency implements ReadConsistency{
    @Override
    public NodeValue get(String key, List<Node> nodes) {
        List<CompletableFuture<NodeValue>> futures = super.getAsync(key, nodes);
        return super.getReturn(futures,nodes.size());
    }
}
